%2F*+tslint%3Adisable%3Aone-line+*%2F%0D%0Aimport+%7B+HeroService+%7D+from+%27.%2Fhero.service%27%3B%0D%0Aimport+%7B+Logger+%7D++++++from+%27..%2Flogger.service%27%3B%0D%0Aimport+%7B+UserService+%7D+from+%27..%2Fuser.service%27%3B%0D%0A%0D%0Alet+heroServiceFactory+%3D+%28logger%3A+Logger%2C+userService%3A+UserService%29+%3D%3E+%7B%0D%0A++return+new+HeroService%28logger%2C+userService.user.isAuthorized%29%3B%0D%0A%7D%3B%0D%0A%0D%0Aexport+let+heroServiceProvider+%3D%0D%0A++%7B%A0provide%3A+HeroService%2C%0D%0A++++useFactory%3A+heroServiceFactory%2C%0D%0A++++deps%3A+%5BLogger%2C+UserService%5D%0D%0A++%7D%3B%0D%0A%0D%0A%0D%0A%2F*%0D%0ACopyright+2016+Google+Inc.+All+Rights+Reserved.%0D%0AUse+of+this+source+code+is+governed+by+an+MIT-style+license+that%0D%0Acan+be+found+in+the+LICENSE+file+at+http%3A%2F%2Fangular.io%2Flicense%0D%0A*%2F